package com.lk.lkappearance.model;

import java.io.Serializable;

/**
 * meter_ parameter
 * @author 
 */
public class MeterParameter implements Serializable {
    /**
     * 主键ID
     */
    private String meterParameterId;

    /**
     * 仪表ID,取自仪表信息表
     */
    private String meterId;

    /**
     * 参数名称
     */
    private String parameterName;

    /**
     * 位号名称
     */
    private String tagName;

    private static final long serialVersionUID = 1L;

    public String getMeterParameterId() {
        return meterParameterId;
    }

    public void setMeterParameterId(String meterParameterId) {
        this.meterParameterId = meterParameterId;
    }

    public String getMeterId() {
        return meterId;
    }

    public void setMeterId(String meterId) {
        this.meterId = meterId;
    }

    public String getParameterName() {
        return parameterName;
    }

    public void setParameterName(String parameterName) {
        this.parameterName = parameterName;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MeterParameter other = (MeterParameter) that;
        return (this.getMeterParameterId() == null ? other.getMeterParameterId() == null : this.getMeterParameterId().equals(other.getMeterParameterId()))
            && (this.getMeterId() == null ? other.getMeterId() == null : this.getMeterId().equals(other.getMeterId()))
            && (this.getParameterName() == null ? other.getParameterName() == null : this.getParameterName().equals(other.getParameterName()))
            && (this.getTagName() == null ? other.getTagName() == null : this.getTagName().equals(other.getTagName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMeterParameterId() == null) ? 0 : getMeterParameterId().hashCode());
        result = prime * result + ((getMeterId() == null) ? 0 : getMeterId().hashCode());
        result = prime * result + ((getParameterName() == null) ? 0 : getParameterName().hashCode());
        result = prime * result + ((getTagName() == null) ? 0 : getTagName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", meterParameterId=").append(meterParameterId);
        sb.append(", meterId=").append(meterId);
        sb.append(", parameterName=").append(parameterName);
        sb.append(", tagName=").append(tagName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    public MeterParameter() {
    }

    public MeterParameter(String meterParameterId, String meterId, String parameterName, String tagName) {
        this.meterParameterId = meterParameterId;
        this.meterId = meterId;
        this.parameterName = parameterName;
        this.tagName = tagName;
    }
}